package com.dbb.trade.entity.company;

import javax.persistence.Column;
import javax.persistence.Entity;

import com.dbb.trade.entity.IdEntity;
import com.dbb.trade.entity.status.CompanyType;


@Entity
public class Company extends IdEntity{
	
	private String name;
	private String cnName;
	private String tel;
	private String fax;
	private String address;
	private String addressEn;
	private String expressAdd;
	private CompanyType type;
	
	public Company() { }
	
	public Company(String cnName, CompanyType type) {
		this.cnName = cnName;
		this.type = type;
	}
	
	public Company(String cnName, String tel, String fax, String address,
			CompanyType type) {
		this.cnName = cnName;
		this.tel = tel;
		this.fax = fax;
		this.address = address;
		this.type = type;
	}
	
	public Company(String name, String cnName, String tel, String fax,
			String address, String addressEn, CompanyType type) {
		this.name = name;
		this.cnName = cnName;
		this.tel = tel;
		this.fax = fax;
		this.address = address;
		this.addressEn = addressEn;
		this.type = type;
	}

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	@Column(nullable = false)
	public String getCnName() {
		return cnName;
	}
	public void setCnName(String cnName) {
		this.cnName = cnName;
	}
	public String getTel() {
		return tel;
	}
	public void setTel(String tel) {
		this.tel = tel;
	}
	public String getFax() {
		return fax;
	}
	public void setFax(String fax) {
		this.fax = fax;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	@Column(nullable = false)
	public CompanyType getType() {
		return type;
	}
	public void setType(CompanyType type) {
		this.type = type;
	}

	public String getAddressEn() {
		return addressEn;
	}

	public void setAddressEn(String addressEn) {
		this.addressEn = addressEn;
	}

	public String getExpressAdd() {
		return expressAdd;
	}

	public void setExpressAdd(String expressAdd) {
		this.expressAdd = expressAdd;
	}
	
	
}
